package com.dachuang.canjiren.mapper;

import com.dachuang.canjiren.entity.Banner;
import com.dachuang.canjiren.entity.Policy;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author testjava
 * @since 2020-07-27
 */
@Repository
public interface PolicyMapper {
    /**
     * 添加时政新闻
     * @return
     */
    int insertPolicy(Policy policy);

    /**
     * 查询时政新闻
     * @param id
     * @return
     */
    @Select("select * from policy where id = #{id}")
    Policy selectPolicy(Integer id);

}
